# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=oed
pkgver=7.1
pkgrel=1
pkgdesc="Portable version of the OpenBSD ed text editor"
url="https://github.com/ibara/oed"
arch="all"
license="BSD-2-Clause AND ISC"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://github.com/ibara/oed/archive/refs/tags/oed-$pkgver.tar.gz"
builddir="$srcdir/oed-oed-$pkgver"

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--program-name=$pkgname
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
40425091166ce950ebd7144c0c876d76f496d50c8abfcd1d7663b7933869cb92ea30e0ffec91de83b14d65d71c61b39d5d2818adb619bb88707831e303c5850b  oed-7.1.tar.gz
"
